<form id="frm-model" action="<?php echo site_url('c=model&m=attr_edit_do');?>" vdt="true">
<input type="hidden" name="id" value="<?php echo fd('r_model.id');?>"/>
<input type="hidden" name="oname" value="<?php echo fd('r_attr.name');?>"/>
<input type="hidden" name="i" value="<?php echo fd('i');?>"/>
<table class="tbl-info">
	<tr>
		<th>属性类型：</th>
		<td>
			<?PHP html_select($opt_attr_type,fd('r_attr.type'),'id="slt-attr-type" name="type"','--请选择--');?>
		</td>
	</tr>
	<tr>
		<th width="100">值：</th>
		<td><input name="value" value="<?php echo fd('r_attr.value');?>"/></td>
	</tr>
	<tr>
		<th width="100">属性名称：</th>
		<td><input name="name" class="validate[required]" value="<?php echo fd('r_attr.name');?>"/></td>
	</tr>
	<tr>
		<th width="100">属性标题：</th>
		<td><input name="title" class="validate[required]" value="<?php echo fd('r_attr.title');?>"/></td>
	</tr>
	<tr>
		<th>允许为空：</th>
		<td>
			<?PHP html_radio(array('Y'=>'Y','N'=>'N'),fd('r_attr.allow_null'),'class="validate[required]" name="allow_null"');?>
		</td>
	</tr>
	<tr>
		<th>默认值：</th>
		<td><input name="default" value="<?php echo fd('r_attr.default');?>"/></td>
	</tr>
	<tr>
		<th>备注：</th>
		<td><textarea name="memo" class="ta-1"><?php echo fd('r_attr.memo');?></textarea></td>
	</tr>
	<tr>
		<th>添加隐藏：</th>
		<td><?php html_radio(array('0'=>'否','1'=>'是'),fd('r_attr.add_hidden'),'name="add_hidden"');?></td>
	</tr>

</table>
<div class="action">
	<input type="button" value="保存"  class="btn-ajax-submit" frmid="frm-model"/>
</div>
</form>

<script type="text/javascript">
$(document).ready(function() {	
	ajaxinit();
});
</script>
